//
//  AlertAlayView.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/11.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "AlertAlayView.h"
@interface AlertAlayView()
@property (weak, nonatomic) IBOutlet UIView *contentView;

- (IBAction)cancelAction:(UIButton *)sender;

@end
@implementation AlertAlayView
+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"AlertAlayView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.75;
    [self addSubview:view];
    self.alpha = 1;
    self.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight);
    [self addSubview:self.contentView];
    
    
    
}

- (IBAction)cancelAction:(UIButton *)sender {
    if (self.cancelActionBlock) {
        self.cancelActionBlock(sender.tag);
    }
    
}
@end
